<?php

namespace app\controller;

use think\response\View;

class Index extends Base
{

    /**
     * 首页
     *
     * @return View
     */
    public function index(): View
    {
        //使用旧版数据库，固定菜单内容
        $topMenu = [
            ['pid' => 386, 'name' => '订单中心'],
            ['pid' => 63, 'name' => '客户管理'],
            ['pid' => 377, 'name' => '销售机会'],
        ];

        return view('index', [
            'top_menu' => $topMenu
        ]);
    }

    public function getMenu()
    {

        return $this->success();
    }
}